<p>
  <b>Name</b><br />
  <%= f.text_field :name %>
</p>

<p>
  <b>Description</b><br />
  <%= f.text_area :description, :rows => 4 %>
</p>

<h3>Attributes</h3>
<div id="item_attributes">
   <%= render :partial => "item_attributes/item_attribute", :collection => @item.item_attributes %>
 </div>
   <%= add_link "Add Attribute", :item_attribute %>

<p>
<b>Category</b><br />
  <%= f.collection_select(:category_id, @categories, :id, :name) %>
</p>